<?php
namespace Service;

class Bank extends Base
{

    public function getDatabase()
    {
        return $this->get(DATABASE_BANK);
    }

    public function getList($page, $limit)
    {
        return $this->getDatabase()->getList($page, $limit);
    }

    public function getAll()
    {
        return $this->getDatabase()->getAll();
    }

    public function isSupport($bankCode)
    {
        $data = [
            'dry_code' => $bankCode,
            'dry_status' => 1
        ];
        return $this->getOneByFields($data);
    }

}